﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PlaceOrder.aspx.cs" Inherits="PlaceOrder" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>Checkout with PayPal Demo</title>
        <!--Including Bootstrap style files-->
        <link href="css/bootstrap.min.css" rel="stylesheet" />
    </head>

    <body>
        <div class="container-fluid">
            <div class="well">
                <h2 class="text-center">PayPal Checkout REST API Demo</h2>
            </div>
            <!----- header above ---->
    
            <div class="row">
                <div class="col-md-4"></div>
                <div class="col-md-4">
                    <h4>Ship To:</h4>

                    <strong>
                        <%= recipientName %>
                    </strong><br />
                    <%= addressLines %><br />
                    <%= city %> <%= state %> <%= postalCode %><br />
                    <%= countryCode  %>

                    <br />
                    <br />

                    <h4>Shipping methods:</h4>

                    <form action="Pay.aspx" method="post">
                        <input type="hidden" name="csrf" value="<%= Session["csrf"] %>" readonly />
                        <select class="form-control required-entry" name="shipping_method" id="shipping_method" style="width: 250px;">
                            <optgroup label="United Parcel Service" style="font-style:normal;">
                                <option value="8.00">
                                Worldwide Expedited - 8.00</option>
                                <option value="4.00">
                                Worldwide Express Saver - 4.00</option>
                            </optgroup>
                            <optgroup label="Flat Rate" style="font-style:normal;">
                                <option value="2.00" selected>
                                Fixed - 2.00</option>
                            </optgroup>
                        </select>
                        <br/>
                        <button type="submit" class="btn btn-primary">Confirm Order</button>
                    </form>
                    <br/>
                </div>
                <div class="col-md-4"></div>
            </div>


            <!----- footer below ---->
		</div>

		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="js/jquery-1.11.3.min.js"></script>
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="js/bootstrap.min.js"></script>
	</body>
</html>
